package org.compression.bean;


import java.util.Map;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

import com.xcc.redis.initservice.imp.IntServiceImp;
import com.xcc.redis.util.DataSourcesManger;

@Component
public class FactoryBean {

/*	@Bean
	public DataSourcesManger getDataSourcesManger() {
		return new DataSourcesManger();
	}
	
	@Bean
	public IntServiceImp getIntServiceImp() {
		return new IntServiceImp();
	}*/
	
	@Bean
	public RestTemplate getRestTemplate() {
		return new RestTemplate();
	}
	
/*	@Autowired
	DataSourcesManger mDataSourcesManger;
	
	Map<Object,Object> testDataSource=mDataSourcesManger.getMDataSources();

	@Bean
	public JdbcTemplate jdbcTemplate() {
		return new JdbcTemplate((DataSource) testDataSource.get("00"));
	}*/
	
	
	
	
	
	
}